﻿<phone:PhoneApplicationPage 
    x:Class="MapABCAPI_WP7.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:Mapabc="clr-namespace:Com.Mapabc.Maps.Api;assembly=Mapabc.WP7.API"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle"  Text="{StaticResource ApplicationTitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle"  FontSize="28" Text="地图示例" Margin="9,20,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,-17,12,0">
            <ScrollViewer>
                <StackPanel  Orientation="Horizontal">

                    <Grid Height="653" Name="grid1" Width="457">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="65" />
                            <ColumnDefinition Width="417" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"  />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Image Style="{StaticResource ImageMainStyle}" ></Image>
                        <HyperlinkButton NavigateUri="/Samples/DisplayMap.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="0">
                            <TextBlock  Style="{StaticResource TextBlockMainStyle}" Text="显示地图"/>
                        </HyperlinkButton>
                        
                        <Image Style="{StaticResource ImageMainStyle}"   Grid.Row="1"></Image>
                        <HyperlinkButton NavigateUri="/Samples/GetMapInfo.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="1">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="获取地图信息示例" />
                        </HyperlinkButton>

                        <Image Style="{StaticResource ImageMainStyle}" Grid.Row="2"></Image>
                        <HyperlinkButton NavigateUri="/Samples/MapControl.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="2">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="地图基本操作示例" />
                        </HyperlinkButton>
                        
                        <Image Style="{StaticResource ImageMainStyle}"  Grid.Row="3"></Image>
                        <HyperlinkButton NavigateUri="/Samples/AddOverlays.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="3">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="添加地图覆盖物示例" />
                        </HyperlinkButton>
                        
                        <Image Style="{StaticResource ImageMainStyle}"  Grid.Column="0" Grid.Row="4"  ></Image>
                        <HyperlinkButton NavigateUri="/Samples/Tip.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="4">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="信息窗体示例"/>
                        </HyperlinkButton>

                        <Image Style="{StaticResource ImageMainStyle}"  Grid.Column="0" Grid.Row="5"  ></Image>
                        <HyperlinkButton NavigateUri="/Samples/AddLayer.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="5">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="叠加层示例"/>
                        </HyperlinkButton>

                        <Image Style="{StaticResource ImageMainStyle}"  Grid.Column="0" Grid.Row="6"  ></Image>
                        <HyperlinkButton NavigateUri="/Samples/MapTool.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="6">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="地图工具示例"/>
                        </HyperlinkButton>

                        <Image Style="{StaticResource ImageMainStyle}"  Grid.Column="0" Grid.Row="7"  ></Image>
                        <HyperlinkButton NavigateUri="/Samples/GestureDrawType.xaml"
                                         Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="7">
                            <TextBlock Style="{StaticResource TextBlockMainStyle}" Text="鼠标工具示例"/>
                        </HyperlinkButton>
                    </Grid>
                </StackPanel>
            </ScrollViewer>
        </Grid>

    </Grid>

</phone:PhoneApplicationPage>